using UnityEngine;
namespace NL.Advanced
{
    public interface ISlaver
    {
        GameObject gameObject { get; }

        void SetMaster(IMaster _master);

    }
    public class Slaver : MonoBehaviour, ISlaver
    {


        void ISlaver.SetMaster(IMaster _master) => SetMaster(_master);
        IMaster _Master;
        public Slaver SetMaster(IMaster _master)
        {
            _Master = _master;
            return this;
        }
    }
}

